//
//  NKPictureCollectionViewCell.m
//  NewKY
//
//  Created by MXQ on 2016/11/15.
//  Copyright © 2016年 Dee. All rights reserved.
//

#import "NKPictureCollectionViewCell.h"

@implementation NKPictureCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        
        [self setupCell];
    }
    return self;
}


- (void) setupCell{
    
    //占位图
//    UIImageView * imgV = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"compose_pic_add_highlighted"]];
//    
//    [self.contentView addSubview:imgV];
//    
//    [imgV mas_makeConstraints:^(MASConstraintMaker *make) {
//        
//        make.top.left.equalTo(self.contentView).offset(10);
//        make.bottom.right.equalTo(self.contentView).offset(-10);
//    }];
//    
    
//    self.imgview = imgV;
    
    //删除图标
//    UIButton * deletV = [[UIButton alloc]initWithFrame:CGRectZero];
//    
//    [deletV setImage:[UIImage imageNamed:@"compose_photo_close"] forState:UIControlStateNormal];
//    
//    [self.contentView addSubview:deletV];
//    
//    [deletV sizeToFit];
//    
////    [deletV addTarget:self action:@selector(picDelete:) forControlEvents:UIControlEventTouchUpInside];
////    
//    deletV.size = CGSizeMake(20, 20);
//    
//    [deletV mas_makeConstraints:^(MASConstraintMaker *make) {
//        
////        make.right.equalTo(self.contentView).offset(-8);
////        make.top.equalTo(self.contentView).offset(8);
//
//        make.centerX.equalTo(imgV.mas_right);
//        make.centerY.equalTo(imgV.mas_top);
//    }];
    
//    self.deletButton = deletV;
    
}
//
//- (void)picDelete:(UIButton *)button{
//
//
//    
//    //创建通知对象
//    [[NSNotificationCenter defaultCenter] postNotificationName:@"passValue" object:button];
//
//    
//}


@end
